<?php 
namespace Common\Model;

/**
 * 客栈预定端掌柜说信息表
 * 
 * @index hotelId(`hotelentity_id`)
 */

Class HotelSpecialModel extends \Common\Model\BaseModel
{
	protected $trueTableName = 'bk_hotel_special';
	protected $field = 'id,hotelentity_id,special,specialimageurl,isactive,isdelete,createtime,updatetime,sortindex';
	/**
     * 根据$hotelId获取多套个性推荐信息
     * 
     * @return array              执行结果
     */
	public function getInfoByHotel($hotelId) {
		$option = array(
			'hotelentity_id' => $hotelId,
			'isdelete' => DISABLE,
		);		
		$data = $this->where($option)->field($this->field)->select();

        return empty($data) ? array() : $data;				
	}
	
}